package com.lurencun.android.topicbank.entity;

import com.lurencun.android.topicbank.presist.Technique;


public class TechniqueJsonEntity {

	/** 问题ID **/
	private Long techniqueId;
	
	private String content;

	public Long getTechniqueId() {
		return techniqueId;
	}

	public void setTechniqueId(Long techniqueId) {
		this.techniqueId = techniqueId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Technique transform() {
		Technique technique = new Technique();
		technique.setContent(content);
		technique.setTechniqueId(techniqueId);
		return technique;
	}

	public boolean isValid() {
		return this.techniqueId!=null && this.techniqueId>0 && this.content!=null && !this.content.equals("");
	}
	
	
}
